#include "AppSoftware.h"

AppSoftware::AppSoftware() {

}

AppSoftware::AppSoftware(string pid, string brand, int stock, int price, 
	string title, string language, string version) 
	: Products( pid, brand, stock, price) {
		setTitle(title);
		setLanguage(language);
		setVersion(version);
}

string AppSoftware::getTitle() {
	return this->title;
}

void AppSoftware::setTitle(string title) {
	this->title = title;
}


string AppSoftware::getLanguage() {
	return this->language;
}

void AppSoftware::setLanguage(string language) {
	this->language = language;
}

string AppSoftware::getVersion() {
	return this->version;
}

void AppSoftware::setVersion(string version) {
	this->version = version;
}

void AppSoftware::productInfo() {
	Products::productInfo();
	//cout << " |" << getTitle() << " |" << getLanguage() << " |" << getVersion();
	cout << " | " << setw(20) << getTitle() << " | " << setw(10) << getLanguage() << " | " << setw(8) << getVersion();
}
